<div class="view">

	<b>链接ID:</b>
	<?php echo CHtml::link(CHtml::encode($data->aid), array('view', 'id'=>$data->aid)); ?>
	<br />

	<b>链接地址:</b>
	<?php echo CHtml::link($data->url, $data->url,array('target'=>'_blank')); ?>
	<br />


    <b><?php echo CHtml::encode($data->getAttributeLabel('img')); ?>:</b>
    <?php
    echo CHtml::link(CHtml::image(Yii::app()->request->baseUrl."/images/gallery/".$data->img), array('view', 'id'=>$data->aid));
    ?>
    <br />


    <b><?php echo '操作'; ?>:</b>
    <?php
    echo CHtml::link('删除', $this->createUrl('/user/links/delete',array('id'=>$data->aid)));
    ?>
    <br />

</div>